home *** CD-ROM | disk | FTP | other *** search
- global gQuestion, gCorrectSprite, gQuestionDone, gQuestionCorrect, QuestionList, CorrectAnswers, gBox1Enabled, gBox2Enabled, gBox3Enabled, gBox4Enabled
-
- on exitFrame
- handcursor(3)
- repeat with n = 9 to 12
- handcursor(n)
- end repeat
- if gQuestion = 1 then
- set gBox1Enabled to 1
- set gBox2Enabled to 1
- set gBox3Enabled to 1
- set gBox4Enabled to 1
- set QuestionList to GetRandomListOfTen(27)
- set CorrectAnswers to 0
- set n to getAt(QuestionList, gQuestion)
- set gCorrectSprite to SetQuestionNextlevel(n)
- set gQuestionCorrect to 1
- set gQuestionDone to 0
- set gQuestion to 2
- end if
- if gQuestionDone then
- if gQuestionCorrect then
- set CorrectAnswers to CorrectAnswers + 1
- end if
- set gBox1Enabled to 1
- set gBox2Enabled to 1
- set gBox3Enabled to 1
- set gBox4Enabled to 1
- if gQuestion = 11 then
- put CorrectAnswers
- addScoreToList(10, "nextlevel", CorrectAnswers, the text of field "name")
- cursorOff()
- go("scores3")
- else
- set n to getAt(QuestionList, gQuestion)
- set gCorrectSprite to SetQuestionNextlevel(n)
- set gQuestionCorrect to 1
- set gQuestionDone to 0
- set the memberNum of sprite 9 to 20
- set the memberNum of sprite 10 to 21
- set the memberNum of sprite 11 to 22
- set the memberNum of sprite 12 to 23
- set gQuestion to gQuestion + 1
- put gQuestion
- end if
- end if
- go(the frame)
- end
-